<template>
	<view class="home-page">
		<u-navbar leftIconColor="#000" :autoBack="true" :placeholder="true" bgColor="rgba(255,255,255,0.0)">
			<view slot="center" class="nav-title">
				公告详情
			</view>
		</u-navbar>
		<view class="content">
			<view class="title">
				{{info.title}}
			</view>
			<view class="time">
				{{info.time}}
			</view>
			<view class="text" v-html="info.content">
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info: {},
				id:''
			}
		},
		onLoad(e) {
			console.log(e)
			this.id = e.id
			this.postnotice()

		},
		methods: {
			postnotice() {
				let params = {
					id:this.id
				}
				this.$Request({
					method: 'POST',
					url: '/api/index/noticeinfo',
					data: params,
					ismsg: false,
				}).then(res => {
					if (res.code == 1) {
						this.info = res.data
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.home-page {
		background-image: url('../../../static/home/home-bg.png');
		background-repeat: no-repeat;
		background-size: 100% 500rpx;
		min-height: 80vh;
		padding: 30rpx;

		.nav-title {
			color: #000;
		}

		.content {
			.title {
				font-size: 42rpx;
				font-weight: 500;
			}

			.time {
				font-size: 28rpx;
				color: #999;
				margin-top: 20rpx;
			}

			.text {
				font-size: 30rpx;
				color: #999;
				margin-top: 30rpx;
			}
		}
	}
</style>